package com.pktechan.manage.service.impl;


import com.pktechan.manage.base.BaseMapper;
import com.pktechan.manage.base.BaseServiceImpl;
import com.pktechan.manage.dao.TradeOrderMapper;
import com.pktechan.manage.entity.TradeOrder;
import com.pktechan.manage.service.TradeOrderService;
import com.pktechan.manage.vo.TradeOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tradeOrderService")
public class TradeOrderServiceImpl extends BaseServiceImpl<TradeOrder> implements TradeOrderService {

    @Autowired
    private TradeOrderMapper tradeOrderMapper;

    /**
     * 由业务类实现
     *
     * @return
     */
    @Override
    public BaseMapper<TradeOrder> getBaseMapper() {
        return tradeOrderMapper;
    }

    /**
     * 查询订单表列表
     * @param tradeOrder
     * @return
     */
    @Override
    public List<TradeOrderVo> getTradeOrderVoList(TradeOrderVo tradeOrder) {
        return tradeOrderMapper.getTradeOrderVoList(tradeOrder);
    }
}
